package com.sofwin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sofwin.dto.UserDto;
import com.sofwin.pojo.SUser;
import com.sofwin.pojo.SUserExample;

public interface SUserMapper {
    int countByExample(SUserExample example);

    int deleteByExample(SUserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SUser record);

    int insertSelective(SUser record);

    List<SUser> selectByExample(SUserExample example);

    SUser selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SUser record, @Param("example") SUserExample example);

    int updateByExample(@Param("record") SUser record, @Param("example") SUserExample example);

    int updateByPrimaryKeySelective(SUser record);

    int updateByPrimaryKey(SUser record);
    
    List<UserDto> selectUsersByPage(SUser user);
}